package com.tyx.chargingpile.service.impl;

import com.tyx.chargingpile.Enum.ServiceMessageEume;
import com.tyx.chargingpile.service.ChargingPileService;
import com.tyx.chargingpile.service.MessageService;
import com.tyx.chargingpile.vo.SocketResponseResult;
import io.netty.channel.ChannelHandlerContext;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 电桩校时上行
 */
@Service("ChargingPileTimeUp")
public class ChargingPileTimeUp implements ChargingPileService {
    @Override
    public SocketResponseResult execute(ChannelHandlerContext channelHandlerContext, byte[] context) throws Exception {
        Map<String,String> map = MessageService.analysisMessage(context, ServiceMessageEume.PILETIME.getUpLinePath());
        String commandBack = map.get("commandBack");
        return null;
    }

    @Override
    public SocketResponseResult execute(ChannelHandlerContext channelHandlerContext, Map data) throws Exception {
        return null;
    }
}
